#include "tcpserver.hpp"
#include <memory>

std::string Handle(const std::string &msg)
{
    std::string res;
    res += "server echo@";
    res += msg;
    return res;
}

int main()
{
    std::unique_ptr<TcpServer> tcp(new TcpServer);
    tcp->Init();
    tcp->setCallBack(std::bind(Handle,std::placeholders::_1));
    tcp->Run();

    return 0;
}